<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: random.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a03650.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">rtl/random.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="a03650_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a383740f6dc1129f6127ab14fbe6b607c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03650.html#a383740f6dc1129f6127ab14fbe6b607c">RtlGetExpWinVer</a> (HANDLE hmod)</td></tr>
<tr class="separator:a383740f6dc1129f6127ab14fbe6b607c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62e76996a7931a9d81504877b518fe53"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03650.html#a62e76996a7931a9d81504877b518fe53">FindCharPosition</a> (LPWSTR lpString, WCHAR ch)</td></tr>
<tr class="separator:a62e76996a7931a9d81504877b518fe53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5777f2ae0de9173043ee4db6189416b7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03650.html#a5777f2ae0de9173043ee4db6189416b7">TextCopy</a> (<a class="el" href="a00365.html#a426c6d3b3fa0c69f73b55f476602e672">PLARGE_UNICODE_STRING</a> pstr, LPWSTR pszDst, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> cchMax)</td></tr>
<tr class="separator:a5777f2ae0de9173043ee4db6189416b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8850f890a331c88b185770597687b43d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03650.html#a8850f890a331c88b185770597687b43d">wcsncpycch</a> (LPWSTR dest, LPCWSTR source, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> count)</td></tr>
<tr class="separator:a8850f890a331c88b185770597687b43d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd8094c4284ac947a5660d07bc658d71"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03650.html#abd8094c4284ac947a5660d07bc658d71">strncpycch</a> (LPSTR dest, LPCSTR source, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> count)</td></tr>
<tr class="separator:abd8094c4284ac947a5660d07bc658d71"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="a62e76996a7931a9d81504877b518fe53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62e76996a7931a9d81504877b518fe53">&#9670;&nbsp;</a></span>FindCharPosition()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> FindCharPosition </td>
          <td>(</td>
          <td class="paramtype">LPWSTR&#160;</td>
          <td class="paramname"><em>lpString</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WCHAR&#160;</td>
          <td class="paramname"><em>ch</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03650_source.html">rtl/random.c</a> 第 <a class="el" href="a03650_source.html#l00080">80</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;{</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwPos = 0L;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordflow">while</span> (*lpString &amp;&amp; *lpString != ch) {</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        ++lpString;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        ++dwPos;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    }</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keywordflow">return</span> dwPos;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00767_source.html#l00812">MNRecalcTabStrings()</a>, <a class="el" href="a00773_source.html#l00606">RealDrawMenuItem()</a>, <a class="el" href="a00185_source.html#l00189">xxxDlgDirListHelper()</a> , 以及 <a class="el" href="a00767_source.html#l00204">xxxMNItemSize()</a>.</p>

</div>
</div>
<a id="a383740f6dc1129f6127ab14fbe6b607c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a383740f6dc1129f6127ab14fbe6b607c">&#9670;&nbsp;</a></span>RtlGetExpWinVer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> RtlGetExpWinVer </td>
          <td>(</td>
          <td class="paramtype">HANDLE&#160;</td>
          <td class="paramname"><em>hmod</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03650_source.html">rtl/random.c</a> 第 <a class="el" href="a03650_source.html#l00028">28</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;{</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    PIMAGE_NT_HEADERS pnthdr;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwMajor = 3;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwMinor = 0xA;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">     * If it doesn&#39;t look like a valid 32bit hmod, use the default</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">     *  (i.e., assuming all 16bit hmods are 0x30a)</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keywordflow">if</span> ((hmod != NULL) &amp;&amp; (LOWORD(hmod) == 0)) {</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;            pnthdr = RtlImageNtHeader((PVOID)hmod);</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;            dwMajor = pnthdr-&gt;OptionalHeader.MajorSubsystemVersion;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">             * Still need this hack &#39;cuz the linker still puts</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">             * version 1.00 in the header of some things.</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;            <span class="keywordflow">if</span> (dwMajor == 1) {</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;                dwMajor = 0x3;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;                dwMinor = pnthdr-&gt;OptionalHeader.MinorSubsystemVersion;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;            }</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        } except (EXCEPTION_EXECUTE_HANDLER) {</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;            dwMajor = 3;        <span class="comment">// just to be safe</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;            dwMinor = 0xA;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        }</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    }</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment">     * Return this is a win3.1 compatible format:</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment">     *</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment">     * 0x030A == win3.1</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment">     * 0x0300 == win3.0</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="comment">     * 0x0200 == win2.0, etc.</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keywordflow">return</span> (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)MAKELONG(MAKEWORD((BYTE)dwMinor, (BYTE)dwMajor), 0);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00623_source.html#l00211">InternalRegisterClassEx()</a> , 以及 <a class="el" href="a00824_source.html#l00933">xxxCreateThreadInfo()</a>.</p>

</div>
</div>
<a id="abd8094c4284ac947a5660d07bc658d71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd8094c4284ac947a5660d07bc658d71">&#9670;&nbsp;</a></span>strncpycch()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> strncpycch </td>
          <td>(</td>
          <td class="paramtype">LPSTR&#160;</td>
          <td class="paramname"><em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPCSTR&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03650_source.html">rtl/random.c</a> 第 <a class="el" href="a03650_source.html#l00184">184</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;{</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        LPSTR start = dest;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160; </div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        <span class="keywordflow">while</span> (count &amp;&amp; (*dest++ = *source++))    <span class="comment">/* copy string */</span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;                count--;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160; </div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;        <span class="keywordflow">return</span> dest - start;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a00869_source.html#l00864">CopyOutputString()</a> , 以及 <a class="el" href="a00842_source.html#l01235">xxxInterSendMsgEx()</a>.</p>

</div>
</div>
<a id="a5777f2ae0de9173043ee4db6189416b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5777f2ae0de9173043ee4db6189416b7">&#9670;&nbsp;</a></span>TextCopy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> TextCopy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a426c6d3b3fa0c69f73b55f476602e672">PLARGE_UNICODE_STRING</a>&#160;</td>
          <td class="paramname"><em>pstr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPWSTR&#160;</td>
          <td class="paramname"><em>pszDst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>cchMax</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03650_source.html">rtl/random.c</a> 第 <a class="el" href="a03650_source.html#l00108">108</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;{</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordflow">if</span> (cchMax != 0) {</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        cchMax = min(pstr-&gt;<a class="code" href="a02457.html#abfb371817eb1c8f0d8a165bb2b798092">Length</a> / <span class="keyword">sizeof</span>(WCHAR), cchMax - 1);</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        RtlCopyMemory(pszDst, pstr-&gt;<a class="code" href="a02457.html#a99314e2f6ea6b552b9538bbe7b7e64ba">Buffer</a>, cchMax * <span class="keyword">sizeof</span>(WCHAR));</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        pszDst[cchMax] = 0;</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    }</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordflow">return</span> cchMax;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l00284">_LARGE_UNICODE_STRING::Buffer</a> , 以及 <a class="el" href="a00365_source.html#l00281">_LARGE_UNICODE_STRING::Length</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03719_source.html#l00176">_InternalGetWindowText()</a>, <a class="el" href="a00890_source.html#l00525">DrawSwitchWndHilite()</a>, <a class="el" href="a00671_source.html#l01146">xxxDefWindowProc()</a>, <a class="el" href="a00185_source.html#l00681">xxxDlgDirSelectHelper()</a>, <a class="el" href="a00614_source.html#l00544">xxxDrawCaptionTemp()</a> , 以及 <a class="el" href="a00200_source.html#l00061">xxxSetFrameTitle()</a>.</p>

</div>
</div>
<a id="a8850f890a331c88b185770597687b43d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8850f890a331c88b185770597687b43d">&#9670;&nbsp;</a></span>wcsncpycch()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> wcsncpycch </td>
          <td>(</td>
          <td class="paramtype">LPWSTR&#160;</td>
          <td class="paramname"><em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPCWSTR&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03650_source.html">rtl/random.c</a> 第 <a class="el" href="a03650_source.html#l00146">146</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;{</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        LPWSTR start = dest;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        <span class="keywordflow">while</span> (count &amp;&amp; (*dest++ = *source++))    <span class="comment">/* copy string */</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;                count--;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <span class="keywordflow">return</span> dest - start;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a00725_source.html#l00782">_GetKeyboardLayoutName()</a>, <a class="el" href="a00929_source.html#l00384">_GetKeyNameText()</a>, <a class="el" href="a00869_source.html#l00864">CopyOutputString()</a>, <a class="el" href="a00095_source.html#l00059">CreateDlgFont()</a>, <a class="el" href="a00026_source.html#l03175">GetActiveKeyboardName()</a>, <a class="el" href="a00668_source.html#l00158">GetDefaultWallpaperName()</a>, <a class="el" href="a00725_source.html#l00227">LoadKeyboardLayoutFile()</a>, <a class="el" href="a03614_source.html#l00522">NtUserCreateWindowStation()</a> , 以及 <a class="el" href="a00842_source.html#l01235">xxxInterSendMsgEx()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa00563_html_a074685e97e89d6aa2accdfcb82328699"><div class="ttname"><a href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a></div><div class="ttdeci">ddeml v[i&lt; inst &gt;][t&lt; type &gt;][hObj|pObj] Dump DDEML state information ddeml lists all ddeml instances for this process n ddeml t&lt; type &gt; lists all ddeml objects of the given type n n assumes link is first DWORD</div><div class="ttdef"><b>Definition:</b> <a href="a00563_source.html#l00175">exts.h:175</a></div></div>
<div class="ttc" id="aa02457_html_a99314e2f6ea6b552b9538bbe7b7e64ba"><div class="ttname"><a href="a02457.html#a99314e2f6ea6b552b9538bbe7b7e64ba">_LARGE_UNICODE_STRING::Buffer</a></div><div class="ttdeci">PWSTR Buffer</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00284">user.h:284</a></div></div>
<div class="ttc" id="aa02457_html_abfb371817eb1c8f0d8a165bb2b798092"><div class="ttname"><a href="a02457.html#abfb371817eb1c8f0d8a165bb2b798092">_LARGE_UNICODE_STRING::Length</a></div><div class="ttdeci">ULONG Length</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00281">user.h:281</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_d1396aa20fcbba3cbb80fda211a2145f.html">rtl</a></li><li class="navelem"><a class="el" href="a03650.html">random.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
